From 1f30670c1d8d86c7ad62742130a4e8b721d3d28a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Wed, 19 Sep 2012 05:02:15 +0200 Subject: [PATCH] userMenu: Close menu immediately when activating Lock When locking the screen, the user menu is moved to the opposite side. Unless we close the menu immediately without animation, the menu will jump to the other side and fade out while the screen shield slides down. https://bugzilla.gnome.org/show_bug.cgi?id=684343 --- js/ui/userMenu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index fcac6cdb7..3d6e340fb 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -12,6 +12,7 @@ const Tp = imports.gi.TelepathyGLib; const UPowerGlib = imports.gi.UPowerGlib; const Atk = imports.gi.Atk; +const BoxPointer = imports.ui.boxpointer; const GnomeSession = imports.misc.gnomeSession; const Main = imports.ui.main; const PanelMenu = imports.ui.panelMenu; @@ -813,6 +814,7 @@ const UserMenuButton = new Lang.Class({ }, _onLockScreenActivate: function() { + this.menu.close(BoxPointer.PopupAnimation.NONE); Main.overview.hide(); Main.screenShield.lock(true); }, -- 2.39.5